﻿<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <!-- Tax Definitions -->
    <record id="tag_vn_01" model="account.account.tag">
        <field name="name">HHDV mua vào</field>
        <field name="applicability">taxes</field>
    </record>
    <record id="tag_vn_02" model="account.account.tag">
        <field name="name">Thuế GTGT HHDV mua vào</field>
        <field name="applicability">taxes</field>
    </record>
    <record id="tag_vn_03" model="account.account.tag">
        <field name="name">Thuế GTGT HHDV mua vào chịu thuế 0%</field>
        <field name="applicability">taxes</field>
    </record>
    <record id="tag_vn_04" model="account.account.tag">
        <field name="name">Thuế GTGT HHDV mua vào chịu thuế 5%</field>
        <field name="applicability">taxes</field>
    </record>
    <record id="tag_vn_05" model="account.account.tag">
        <field name="name">Thuế GTGT HHDV mua vào chịu thuế 10%</field>
        <field name="applicability">taxes</field>
    </record>
    <record id="tag_vn_06" model="account.account.tag">
        <field name="name">Giá trị HHDV mua vào</field>
        <field name="applicability">taxes</field>
    </record>
    <record id="tag_vn_07" model="account.account.tag">
        <field name="name">Giá trị HHDV mua vào chịu thuế 0%</field>
        <field name="applicability">taxes</field>
    </record>
    <record id="tag_vn_08" model="account.account.tag">
        <field name="name">Giá trị HHDV mua vào chịu thuế 5%</field>
        <field name="applicability">taxes</field>
    </record>
    <record id="tag_vn_09" model="account.account.tag">
        <field name="name">Giá trị HHDV mua vào chịu thuế 10%</field>
        <field name="applicability">taxes</field>
    </record>
    <record id="tag_vn_10" model="account.account.tag">
        <field name="name">HHDV bán ra</field>
        <field name="applicability">taxes</field>
    </record>
    <record id="tag_vn_11" model="account.account.tag">
        <field name="name">Thuế GTGT HHDV bán ra</field>
        <field name="applicability">taxes</field>
    </record>
    <record id="tag_vn_12" model="account.account.tag">
        <field name="name">Thuế GTGT HHDV bán ra chịu thuế 0%</field>
        <field name="applicability">taxes</field>
    </record>
    <record id="tag_vn_13" model="account.account.tag">
        <field name="name">Thuế GTGT HHDV bán ra chịu thuế 5%</field>
        <field name="applicability">taxes</field>
    </record>
    <record id="tag_vn_14" model="account.account.tag">
        <field name="name">Thuế GTGT HHDV bán ra chịu thuế 10%</field>
        <field name="applicability">taxes</field>
    </record>
    <record id="tag_vn_15" model="account.account.tag">
        <field name="name">Giá trị HHDV bán ra</field>
        <field name="applicability">taxes</field>
    </record>
    <record id="tag_vn_16" model="account.account.tag">
        <field name="name">Giá trị HHDV bán ra chịu thuế 0%</field>
        <field name="applicability">taxes</field>
    </record>
    <record id="tag_vn_17" model="account.account.tag">
        <field name="name">Giá trị HHDV bán ra chịu thuế 5%</field>
        <field name="applicability">taxes</field>
    </record>
    <record id="tag_vn_18" model="account.account.tag">
        <field name="name">Giá trị HHDV bán ra chịu thuế 10%</field>
        <field name="applicability">taxes</field>
    </record>

    <!-- for purchase -->
    <record id="tax_purchase_vat10" model="account.tax.template">
        <field name="chart_template_id" ref="vn_template"/>
        <field name="name">Thuế GTGT được khấu trừ 10%</field>
        <field name="description">Thuế GTGT được khấu trừ 10%</field>
        <field name="amount" eval="10"/>
        <field name="amount_type">percent</field>
        <field name="account_id" ref="chart1331"/>
        <field name="refund_account_id" ref="chart1331"/>
        <field name="type_tax_use">purchase</field>
        <field name="tag_ids" eval="[(6,0,[ref('tag_vn_09'),ref('tag_vn_05')])]"/>
        <field name="tax_group_id" ref="tax_group_10"/>
    </record>
    <record id="tax_purchase_vat5" model="account.tax.template">
        <field name="chart_template_id" ref="vn_template"/>
        <field name="name">Thuế GTGT được khấu trừ 5%</field>
        <field name="description">Thuế GTGT được khấu trừ 5%</field>
        <field name="amount" eval="5"/>
        <field name="amount_type">percent</field>
        <field name="account_id" ref="chart1331"/>
        <field name="refund_account_id" ref="chart1331"/>
        <field name="type_tax_use">purchase</field>
        <field name="tag_ids" eval="[(6,0,[ref('tag_vn_08'),ref('tag_vn_04')])]"/>
        <field name="tax_group_id" ref="tax_group_5"/>
    </record>
    <record id="tax_purchase_vat0" model="account.tax.template">
        <field name="chart_template_id" ref="vn_template"/>
        <field name="name">Thuế GTGT được khấu trừ 0%</field>
        <field name="description">Thuế GTGT được khấu trừ 0%</field>
        <field name="amount" eval="0"/>
        <field name="amount_type">percent</field>
        <field name="account_id" ref="chart1331"/>
        <field name="refund_account_id" ref="chart1331"/>
        <field name="type_tax_use">purchase</field>
        <field name="tag_ids" eval="[(6,0,[ref('tag_vn_07')])]"/>
        <field name="tax_group_id" ref="tax_group_0"/>
    </record>

    <!-- for sale -->
    <record id="tax_sale_vat10" model="account.tax.template">
        <field name="chart_template_id" ref="vn_template"/>
        <field name="name">Thuế GTGT phải nộp 10%</field>
        <field name="description">Thuế GTGT phải nộp 10%</field>
        <field name="amount" eval="10"/>
        <field name="amount_type">percent</field>
        <field name="account_id" ref="chart33311"/>
        <field name="refund_account_id" ref="chart33311"/>
        <field name="type_tax_use">sale</field>
        <field name="tag_ids" eval="[(6,0,[ref('tag_vn_18'),ref('tag_vn_14')])]"/>
        <field name="tax_group_id" ref="tax_group_10"/>
    </record>
    <record id="tax_sale_vat5" model="account.tax.template">
        <field name="chart_template_id" ref="vn_template"/>
        <field name="name">Thuế GTGT phải nộp 5%</field>
        <field name="description">Thuế GTGT phải nộp 5%</field>
        <field name="amount" eval="5"/>
        <field name="amount_type">percent</field>
        <field name="account_id" ref="chart33311"/>
        <field name="refund_account_id" ref="chart33311"/>
        <field name="type_tax_use">sale</field>
        <field name="tag_ids" eval="[(6,0,[ref('tag_vn_17'),ref('tag_vn_13')])]"/>
        <field name="tax_group_id" ref="tax_group_5"/>
    </record>
    <record id="tax_sale_vat0" model="account.tax.template">
        <field name="chart_template_id" ref="vn_template"/>
        <field name="name">Thuế GTGT phải nộp 0%</field>
        <field name="description">Thuế GTGT phải nộp 0%</field>
        <field name="amount" eval="0"/>
        <field name="amount_type">percent</field>
        <field name="account_id" ref="chart33311"/>
        <field name="refund_account_id" ref="chart33311"/>
        <field name="type_tax_use">sale</field>
        <field name="tag_ids" eval="[(6,0,[ref('tag_vn_16')])]"/>
        <field name="tax_group_id" ref="tax_group_0"/>
    </record>
</odoo>
